package com.design.mode.template;

/**
 * 模板设计模式，抽象类定义好模板，公共方法已实现，子类对专门的逻辑模板方法进行实现即可
 * @Date 2023/4/3 14:51:11
 * @Author luopeng
 */
public class TemplatePatternDemo {
    public static void main(String[] args) {
        Beverage tee = new Tee();
        tee.prepareBeverage();
        Beverage coffee = new Coffee();
        coffee.prepareBeverage();
    }
}
